import request from '@/utils/request';

export async function getToolInfoByPage (params: any) {
    return request('/api/device/getToolInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addToolInfo (params: any) {
    return request('/api/device/addToolInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateToolInfo (params: any) {
    return request('/api/device/updateToolInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delToolInfo (params: any) {
    return request('/api/device/delToolInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportToolInfo(params: any) {
    return request('/api/device/exportToolInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getToolInfoByPage, addToolInfo, updateToolInfo, delToolInfo, exportToolInfo }
